package com.example.medispider.pojo.detail.detail;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeatilApiResponse {
    private Integer code;
    private String type;
    private String message;
    private DetailResponseData data;

    // 判断请求是否成功
    public boolean isSuccess() {
        return code != null && code == 0 && "success".equals(type);
    }
}
